package com.service.impl;

import com.dao.LoginDao;
import com.domain.LoginUser;
import com.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginDao loginDao;

    @Override
    public LoginUser findByName(String userName) {
        return loginDao.findByName(userName);
    }

    @Override
    public void updatePassword(LoginUser user) {
        loginDao.updatePassword(user);
    }

    @Override
    public void resetPassword(String userName) {
        loginDao.resetPassword(userName);
    }
}
